<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>CFBundleGetInfoString</key>
		<string>${info.displayName} ${info.version}</string>
#if (!$info.fileAssociations.isEmpty())		
		<key>CFBundleDocumentTypes</key>
		<array>
#foreach ($fileAssociation in $info.fileAssociations)		
			<dict>
				<key>CFBundleTypeIconFile</key>
				<string>${info.iconFile.name}</string>
				<key>CFBundleTypeName</key>
				<string>${fileAssociation.description}</string>
				<key>CFBundleTypeRole</key>
				<string>Viewer</string>
				<key>LSHandlerRank</key>
				<string>Owner</string>				
				<key>LSItemContentTypes</key>
				<array>
					<string>${info.macConfig.appId}.${fileAssociation.extension}</string>
				</array>
			</dict>
#end
		</array>
#end
#if (!$info.fileAssociations.isEmpty())
		<key>UTExportedTypeDeclarations</key>
		<array>
#foreach ($fileAssociation in $info.fileAssociations)		
			<dict>
				<key>UTTypeConformsTo</key>
				<array>
					<string>public.data</string>
				</array>
				<key>UTTypeDescription</key>
				<string>${fileAssociation.description}</string>
				<key>UTTypeIdentifier</key>
				<string>${info.macConfig.appId}.${fileAssociation.extension}</string>
				<key>UTTypeTagSpecification</key>
				<dict>
					<key>public.filename-extension</key>
					<string>${fileAssociation.extension}</string>
#if ($fileAssociation.mimeType)
					<key>public.mime-type</key>
					<string>${fileAssociation.mimeType}</string>
#end
				</dict>
			</dict>
#end		    
		</array>
#end
		<key>CFBundleDevelopmentRegion</key>
		<string>English</string>
		<key>CFBundleExecutable</key>
		<string>${info.executable.name}</string>
		<key>CFBundleIconFile</key>
		<string>${info.iconFile.name}</string>
		<key>CFBundleIdentifier</key>
		<string>${info.macConfig.appId}</string>
		<key>CFBundleDisplayName</key>
		<string>${info.displayName}</string>
		<key>CFBundleInfoDictionaryVersion</key>
		<string>6.0</string>
		<key>CFBundleName</key>
		<string>${info.displayName}</string>
		<key>CFBundlePackageType</key>
		<string>${info.macConfig.infoPlist.bundlePackageType}</string>
		<key>CFBundleShortVersionString</key>
		<string>${info.version}</string>
		<key>CFBundleSignature</key>
		<string>????</string>
		<key>CFBundleVersion</key>
		<string>${info.version}</string>
		<key>NSHumanReadableCopyright</key>
		<string>${info.organizationName}</string>
		<key>NSHighResolutionCapable</key>
		<true />
		<key>NSSupportsAutomaticGraphicsSwitching</key>
		<true />
		<key>AdministratorRequired</key>
#if ($info.administratorRequired)		
		<true />
#else
		<false />
#end
		<key>JavaX</key>
		<dict>
			<key>MainClass</key>
			<string>${info.mainClass}</string>
#if (!$info.bundleJre && $info.jreMinVersion)		
			<key>JVMVersion</key>
			<string>${info.jreMinVersion}+</string>
#end
			<key>ClassPath</key>
			<array>
#foreach ($classpath in $info.classpaths)
				<string>$classpath</string>
#end
			</array>
#if (!$info.vmArgs.empty)
			<key>VMOptions</key>
			<array>
#foreach ($vmArg in $info.vmArgs)
				<string>$vmArg</string>
#end			
			</array>
#end
#if ($info.useResourcesAsWorkingDir)		
			<key>WorkingDirectory</key>
			<string>$APP_PACKAGE/Contents/Resources</string>
#end
			<key>JVMOptionsFile</key>
			<string>$APP_PACKAGE/Contents/Resources/${info.name}.l4j.ini</string>
#if ($info.scripts.bootstrap)			
			<key>BootstrapScript</key>
			<string>$APP_PACKAGE/Contents/Resources/scripts/${info.bootstrapFile.name}</string>
#end
			<key>RelocateJar</key>
#if ($info.macConfig.relocateJar)			
			<true/>
#else
			<false/>
#end
		</dict>
		<key>LSEnvironment</key>
		<dict>
#if ($info.bundleJre)
			<key>JAVA_HOME</key>
			<string>Contents/PlugIns/${info.jreDirectoryName}/Contents/Home</string>
#end
#if($info.envPath)
			<key>PATH</key>
			<string>${info.envPath}</string>
#end
		</dict>
		<key>NSAppleEventsUsageDescription</key>
		<string>There was an error while launching the application. Please
			click OK to display a dialog with more information or cancel and view
			the syslog for details.</string>
#if($info.macConfig.infoPlist && $info.macConfig.infoPlist.additionalEntries)
	${info.macConfig.infoPlist.additionalEntries}
#end
	</dict>
</plist>
